Skip to content

fix: prevent Android fill/type truncation with + and @#142

Merged
thymikee merged 3 commits intomainfrom
codex/fix-android-fill-encoding-140
Feb 26, 2026
Merged

fix: prevent Android fill/type truncation with + and @#142
thymikee merged 3 commits intomainfrom
codex/fix-android-fill-encoding-140

Conversation

@thymikee
Copy link
Copy Markdown
Contributor

@thymikee thymikee commented Feb 26, 2026

Summary

Harden Android text entry for fill by using a verified fallback strategy: try adb shell input text first, then fallback to clipboard paste, and finally chunked input for ASCII text when needed.

Keep type behavior aligned with Android shell expectations by using %s space escaping (no blanket URL encoding), and add focused Android tests for special ASCII input plus the truncation fallback flow.

closes #140

Validation

  • pnpm typecheck
  • node --test src/platforms/android/tests/index.test.ts
  • pnpm test:unit
  • pnpm test:smoke

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 26, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://callstackincubator.github.io/agent-device/pr-preview/pr-142/

Built to branch gh-pages at 2026-02-26 09:32 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@thymikee thymikee merged commit 0c4b125 into main Feb 26, 2026
6 checks passed
@thymikee thymikee deleted the codex/fix-android-fill-encoding-140 branch February 26, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android: fill truncates input with standard ASCII special characters (+, @)

1 participant